pass --git-dir when reading git config when it was specified explicitly
authorJoey Hess <joeyh@joeyh.name>
Mon, 26 Sep 2022 18:38:34 +0000 (14:38 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 26 Sep 2022 18:38:34 +0000 (14:38 -0400)
commitbfa451fc4e621700883fb3b34600bdf71f515a62
tree19e02a941c2a725bd9d33a9174ce18e2dd216244
parent1d47a7e7e62502f390dd3289764b177fce69f2e9
pass --git-dir when reading git config when it was specified explicitly

Let GIT_DIR and --git-dir override git's protection against operating in a
repository owned by another user.

This is the same behavior other git commands have.

Sponsored-by: Jarkko Kniivilä on Patreon
CHANGELOG
Git/Config.hs
Git/CurrentRepo.hs